package org.raymond.iworks.study.spring.controller;

import org.raymond.iworks.study.spring.service.ParallelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
@RestController
public class ParallelTestController {

    @Autowired
    private ParallelService parallelService;

    @PostMapping("/testAsyncInsertA")
    public void testAsyncInsertA() throws Exception {
        parallelService.asyncInsertA();
    }

    @PostMapping("/testAsyncInsertB")
    public void testAsyncInsertB() throws Exception {
        parallelService.asyncInsertB();
    }
}
